package com.zzyl.mapper;


import com.github.pagehelper.Page;
import com.zzyl.dto.NursingLevelPageDto;
import com.zzyl.entity.NursingLevel;
import com.zzyl.vo.NursingLevelVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NursingLevelMapper {

    List<NursingLevelVO> selectAll();

    Page<NursingLevelVO> pageCondition(NursingLevelPageDto nursingLevelPageDto);

    void insert(NursingLevel nursingLevel);

    @Select("select  * from nursing_level where id = #{id}")
    NursingLevelVO getById(Long id);

    void update(NursingLevel nursingLevel);

}
